/*
  该文件专门用于暴露一个store对象，整个应用只有一个store对象 
*/

// 引入legacy_createStore，专门用于创建redux中最核心的store对象,applyMiddleware用于插入中间件
import {legacy_createStore,applyMiddleware} from 'redux'
// 将汇总之后的reducers传给store
import reducer from './reducers'
// 引入@redux-devtools/extension
import {composeWithDevTools } from '@redux-devtools/extension'
// 引入redux-thunk，用于支持异步action
import {thunk} from 'redux-thunk'



export default legacy_createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))
